package com.hefei.genericity;

/**
 * @author caizhengjun
 * @date 2020/9/4 2:03 下午
 */
public class Demo05 {
    public static void main(String[] args) {

        Generic<Integer> generic = new Generic<>(123);
        Generic<Number> numberGeneric = new Generic<>(456);

        Demo05 demo05 = new Demo05();

        demo05.showKeyValue(generic);
        demo05.showKeyValue(numberGeneric);
    }

    private void showKeyValue(IGenerator<?> obj) {
        System.out.println("范型测试" + obj);
    }
}
